package demo9;

import java.io.*;

@SuppressWarnings({"all"})
public class Test {
    public static void main(String[] args) {
        try(OutputStream outputStream=new FileOutputStream("d:/test.txt")){
           String str="你好明天";
           outputStream.write(str.getBytes());

        }catch(IOException e){
            e.printStackTrace();
        }
    }
}
